#coding=utf-8
#Boa:Frame:FrameDeliveryManage

import wx

def create(parent):
    return FrameDeliveryManage(parent)

[wxID_FRAMEDELIVERYMANAGE, wxID_FRAMEDELIVERYMANAGENB, 
] = [wx.NewId() for _init_ctrls in range(2)]

class FrameDeliveryManage(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAMEDELIVERYMANAGE,
              name=u'FrameDeliveryManage', parent=prnt, pos=wx.Point(561, 244),
              size=wx.Size(1046, 775), style=wx.DEFAULT_FRAME_STYLE,
              title=u'\u9001\u8d27\u7ba1\u7406')
        self.SetClientSize(wx.Size(1040, 737))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              u'\u6977\u4f53_GB2312'))
        self.SetBackgroundColour(wx.Colour(183, 209, 173))

        self.nb = wx.Notebook(id=wxID_FRAMEDELIVERYMANAGENB,
              name='notebook1', parent=self, pos=wx.Point(0, 0),
              size=wx.Size(1040, 737), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)

        self.Bind(wx.EVT_CLOSE, self.OnFrameDeliveryManageClose)
        self.myInit()

    def myInit(self):
        import PanelOverdueCustomer
        import PanelOverdueRegion
        import PanelRouteList
        
        self.panelRouteList = PanelRouteList.PanelRouteList(self.nb)
        self.nb.AddPage(imageId=-1, page=self.panelRouteList, select=True,
                    text=u'路线管理')

        self.panelOverdueCustomer = PanelOverdueCustomer.PanelOverdueCustomer(self.nb)
        self.nb.AddPage(imageId=-1, page=self.panelOverdueCustomer, select=False,
                    text=u'超期客户')
                                
        self.panelOverdueRegion = PanelOverdueRegion.PanelOverdueRegion(self.nb)
        self.nb.AddPage(imageId=-1, page=self.panelOverdueRegion, select=False,
                    text=u'超期地区')
                    
    
    def OnFrameDeliveryManageClose(self, event):
        self.Show(False)              
                    
